<!DOCTYPE html>
<<<<<<< HEAD
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
=======
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script th:src="@{/bootstrap3/js/holder.js}"></script>
    <link th:src="@{/bootstrap3/css/bootstrap.css}" rel="stylesheet" type="text/css">
    <script th:src="@{/bootstrap3/jquery-1.8.3.min.js}"></script>
<!--    <script src="../static/bootstrap3/js/bootstrap.js"></script>-->
    <script th:src="@{/bootstrap3/js/bootstrap.js}"></script>
</head>

<body>
<div class="container">
    <%--            标题--%>
    <div class="row">
        <div class="col-md-12">
            <h1>SSM-CRUD</h1>
        </div>
    </div>
    <%--    按钮--%>
    <div class="row">
        <div class="col-md-4 col-md-offset-8">
            <button class="btn btn-primary">新增</button>
            <button class="btn btn-danger">删除</button>
        </div>
    </div>
    <%--    显示表格数据--%>
    <div class="row">
        <div class="col-md-12">
            <table class="table-hover" id="userInfo">
                <tr>
                    <th>#</th>
                    <th>empName</th>
                    <th>gender</th>
                    <th>email</th>
                    <th>deptName</th>
                    <th>操作</th>
                </tr>
                <tr th:each="listInfo : ${listInfo}">
                    <th th:text="${listInfo.id}">1</th>
                    <th th:text="${listInfo.name}">q</th>
                    <th th:text="${listInfo.age}">gender</th>
                    <th th:text="${listInfo.email}">email</th>
                    <th>
                        <button class="btn btn-primary btn-sm">
                            <span class="glyphicon glyphicon-pencil" aria-hidden="true">编辑</span>
                        </button>
                        <button class="btn btn-danger btn-sm">
                            <span class="glyphicon glyphicon-pencil" aria-hidden="true"> 删除</span>
                        </button>
                    </th>
                </tr>
            </table>
        </div>
    </div>

    <div class="row">
        <div class=""></div>

        <div class=""></div>
    </div>



</div>
</body>
<script>
    $(document).ready(function(){
        $.ajax({
            url:"/study/api/user/",
            type:"GET",
            data:$("#userInfo").serialize(),
            dataType:"JSON",
            success:function () {
                alert("成功")
            },
            error:function (err) {
                alert("失败")
            }
        });
    });


</script>
>>>>>>> origin/master
</html>